package com.red.usespringboot.aspect;


import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class RedAspect {


    @Before("execution(public String com.red.usespringboot.Controller.test())")
    public void zhouyuBefore(JoinPoint joinPoint){
        System.out.println("进入aop 切面");
    }

}
